<?php


use Biz\service\ShopMall as sShopMall;
use Biz\service\activity\AllActivityInfo as sAllActivityInfo;
/**
 * @deprecated
 * Created by PhpStorm.
 * User: Dave
 * Date: 2018/4/3
 * Time: 14:29
 */
class GetBannerAction extends ActionPlugin
{
    const USER_LEVEL = self::LEVEL_NOTHING;

    public function main()
    {
        $version = version_compare($this->appVersion, '3.4.7', '>=');
        $data = sShopMall::getBanner($this->uid, $version);
        $data = $data ?: (object)$data;
        $this->setSuccess($data);

    }
}